import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/8
 */

public class Test01 {
    public static void main(String[] args) {
        int i1 = 123;
        int i2 = i1 % 10;
        int i3 = i1 / 10 % 10;
        int i4 = i1 / 100;
        System.out.println("123个位是" + i2);
        System.out.println("123十位是" + i3);
        System.out.println("123百位是" + i4);
    }
}